package com.weishaoying.rws.mult;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class ThreadLocalRountingDataSource extends AbstractRoutingDataSource {

    // 关键: 获取数据源key的方法
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceTypeManager.get();
    }

}